package com.dayuanit.booksystem.v2.service;

import com.dayuanit.booksystem.v2.entity.Book;

import java.util.List;

public interface BookService {

    void addBook(String bookName, String author, String price, long publisherId);

    Book queryBook(long bookId);

    Book queryBook(String bookName);

    //如果查询结果是多条记录 建议方法以list开头
    List<Book> listBook(long publisherId);

    int countBook(long publisherId);

    void upateBookPrice(long bookId, String newPrice);

    void deleteBook(long bookId);

    void updateBookPrice(String bookName, String newPrice);
}
